package org.example.gui.panel;

import org.example.gui.widget.HistoryPickerPanel;
import org.example.gui.widget.HistoryTablePanel;

import java.awt.*;

/**
 * 界面类 HistoryPanel 历史消费页
 * 调用了 HistoryPickerPanel 和 HistoryTablePanel 两个子面板
 */
public class HistoryPanel extends WorkingPanel {
    public static HistoryPanel instance = new HistoryPanel();

    private HistoryPanel() {
        this.setLayout(new BorderLayout());
        this.add(HistoryPickerPanel.instance, BorderLayout.NORTH);
        this.add(HistoryTablePanel.instance, BorderLayout.CENTER);
    }


    @Override
    public void updateData() {
        HistoryTablePanel.instance.updateData();
    }


    @Override
    public void addListener() {

    }
}
